TGML Cubic Bezier Curve

Curve defines a cubic Bezier curve. The cubic Bezier curve has a start point, an end point, and two control points. The control points act as magnets, pulling the curve in certain directions to influence the way the Bezier curve bends.

Curve supports polybezier, which is a consecutive set of Bezier points. The end point of the preceding Bezier becomes the start point of the following Bezier.

Attribute Type Description

Closed

Bool

Describes if the curve is closed or not. That is, if Points data end with "z" or not.
Default: "False"
Inheritable: No
Animatable: No

Fill

Brush

Specifies how the interior of the shape is painted.
Default: "None"
Inheritable: Yes
Animatable: Yes

Opacity

Double

A value between "0.0" (transparent) and "1.0" (opaque)
Default: "1.0"
Inheritable: No
Animatable: Yes

Points

Array of Point

The points: start point, control points, and end point, of the Bezier.
Polybezier is supported.
Inheritable: No
Animatable: No

Stroke

Brush

Describes how the line is painted.
Default:"#000000"
Inheritable: Yes
Animatable: Yes

StrokeDashArray

Array of Double

The pattern of dashes and gaps used to outline shapes:
"<dash> [ <gap> <dash> <gap>...]"
If the array only specifies the first dash, the line is patterned as if a gap with the same length as the dash was specified.
An array with only one dash set to "0" will result in a line without any pattern.
Default: "0"
Inheritable: Yes
Animatable: Yes

StrokeWidth

Double

The width of the outline of a line.
Default: "1"
Inheritable: Yes
Animatable: Yes

Visibility Visibility

Specifies if the element is visible or not.
Default: "Visible"
Inheritable: No
Animatable: Yes